from django import forms

from captcha.fields import CaptchaField


class FeedbackForm(forms.Form):
    """
    用户的反馈表单
    """
    name = forms.CharField()
    email = forms.CharField(
        required=False,
        help_text="留下你的联系邮箱，以便我们回复你，非必须",
    )
    comments = forms.CharField(widget=forms.Textarea())
    captcha = CaptchaField()
